package au.org.ala.phylojive

class Template {
    String name
    String code

    static constraints = {
        name (unique: true, blank: false)
        code (blank: false, widget: 'textarea')
    }

    static mapping = {
        code type: 'text'
    }

    String toString() {
        name
    }
}
